package com.kobe.algorithm.niue;
import java.util.Scanner;

/**
 * @author ：caopengfei
 * @date ：2021/5/6
 */
public class Main {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        String input = scanner.nextLine();
        char [] inputArr = input.toCharArray();

        for(int i= 0; i<inputArr.length/2; i++){
            int lastIndex = inputArr.length-i-1;
            char temp = inputArr[lastIndex];
            inputArr[lastIndex] = inputArr[i];
            inputArr[i] = temp;
        }
        System.out.println(new String(inputArr));
    }

}
